/*
** poub.c for  in /home/renard/Dropbox/epitech/dev/projets/systemunix/zappy/zappy-2015-2014s-renard_g/serv-src
** 
** Made by guillaume renard
** Login   <renard_g@epitech.net>
** 
** Started on  Thu Jul 19 21:31:28 2012 guillaume renard
** Last update Thu Jul 19 21:48:39 2012 guillaume renard
*/

#include	"server.h"

char		orientation(char k, char dir)
{
  if (dir == 1)
    return (k);
  else if (dir == 2)
    k += 2;
  else if (dir == 3)
    k += 4;
  else if (dir == 4)
    k += 6;
  if (k > 8)
    k -= 8;
  return (k);
}

